package com.ict.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ict.web.domain.PerformanceIndicators;
import com.ict.web.vo.PerIndectorsDetailsVo;
import com.ict.web.vo.PerIndicatorsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 绩效指标Mapper接口
 * 
 * @author ruoyi
 * @date 2022-02-15
 */
@Mapper
public interface PerformanceIndicatorsMapper extends BaseMapper<PerformanceIndicators>
{
    /**
     * 查询绩效指标
     * 
     * @param indicatorsId 绩效指标主键
     * @return 绩效指标
     */
    public PerformanceIndicators selectPerformanceIndicatorsByIndicatorsId(Long indicatorsId);

    /**
     * 查询绩效指标列表
     * 
     * @param
     * @return 绩效指标集合
     */
    public List<PerIndicatorsVo> selectPerformanceIndicatorsList();
    /**
     * 删除绩效指标
     * 
     * @param indicatorsId 绩效指标主键
     * @return 结果
     */
    public int deletePerformanceIndicatorsByIndicatorsId(Long indicatorsId);

    /**
     * 根据绩效id查询绩效指标下详情
     * @param perId
     * @return
     */
    public List<PerIndicatorsVo> selectPerformanceIndicatorsListByPerId(Long perId);

    /**
     * 根据绩效id查询指标详情及得分
     * @param perId
     * @return
     */
    public List<PerIndectorsDetailsVo> selectPerformanceIndicatorsDetail(@Param("perId") Long perId);

}
